package com.boco.blch.analysiser.compliance.HW.manager;

import com.boco.blch.analysiser.compliance.ComplianceResolved;

public class BOCO_Flume_IdentityAuth_InterfaceAuth implements ComplianceResolved{

	@Override
	public int realEchoResolved(String echoResult) {
		String str=echoResult.replaceAll(" ", "");
		String[] echoResult1=str.split("\n");
		String result="a1.sinks.k1.truststore=";
		if(echoResult != null && echoResult.trim().length() > 0){
			String value="";
			for(int i=0;i<echoResult1.length;i++){
				if(echoResult1[i].contains("a1.sinks.k1.truststore")){
					value=echoResult1[i];//取出a1.sinks.k1.truststore配置项的值赋值给value
				}
			}
			if (str.contains("a1.sinks.k1.ssl=true")&&value.length()>result.length()&&!str.contains(NotFindFile)){
				return SUCCESS;
			}
		}
		return FAILED;
	}
	
	


	
}
